package org.threebitsoftware.tbb.dao;

import org.apache.log4j.Logger;

public class PhoneNumber implements DeletableDomainObjectInterface {
	
	static Logger cLogger = Logger.getLogger(PhoneNumber.class);
	
	String cStrPhoneNumber = "";
	String cStrDescription = "";
	
	int iIdPhoneNumber = -1;
	int iIdContact = -1;
	boolean markedForDeletion = false;
	
	public void PhoneNumber() {
		
	}
	
	

	public PhoneNumber(String strPhoneNumber, String strDescription) {
		super();
		cStrPhoneNumber = strPhoneNumber;
		cStrDescription = strDescription;
	}

	


	public PhoneNumber(String strPhoneNumber, String strDescription,
			int idPhoneNumber, int idContact) {
		super();
		cStrPhoneNumber = strPhoneNumber;
		cStrDescription = strDescription;
		iIdPhoneNumber = idPhoneNumber;
		iIdContact = idContact;
	}
	
	public String toString() {
		return "PhoneNumberObject = PN: " +cStrPhoneNumber + " | D: " + cStrDescription + " | idC:" + iIdContact + " | idPN: " + iIdPhoneNumber;
	}

	/*
	 * Getters and Setters
	 */

	/**
	 * @return the cStrPhoneNumber
	 */
	public String getPhoneNumber() {
		return cStrPhoneNumber;
	}

	/**
	 * @param strPhoneNumber the cStrPhoneNumber to set
	 */
	public void setPhoneNumber(String strPhoneNumber) {
		cStrPhoneNumber = strPhoneNumber;
	}

	/**
	 * @return the cStrDescription
	 */
	public String getDescription() {
		return cStrDescription;
	}

	/**
	 * @param strDescription the cStrDescription to set
	 */
	public void setDescription(String strDescription) {
		cStrDescription = strDescription;
	}

	/**
	 * @return the iIdPhoneNumber
	 */
	public int getIdPhoneNumber() {
		return iIdPhoneNumber;
	}

	/**
	 * @param idPhoneNumber the iIdPhoneNumber to set
	 */
	public void setIdPhoneNumber(int idPhoneNumber) {
		iIdPhoneNumber = idPhoneNumber;
	}

	/**
	 * @return the iIdContact
	 */
	public int getIdContact() {
		return iIdContact;
	}

	/**
	 * @param idContact the iIdContact to set
	 */
	public void setIdContact(int idContact) {
		iIdContact = idContact;
	}
	
	public void markForDeletion(boolean deleteMe)
	{
		markedForDeletion = deleteMe;
	}
	
	public boolean isMarkedForDeletion()
	{
		return markedForDeletion;
	}
}
